package com.spc.demo.controller;

import com.spc.demo.center.EventCenter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author pingchao.su
 * @date 2022/6/25 21:20
 */
@RestController
public class TestController {
    @Autowired
    EventCenter eventCenter;

    @GetMapping(value = "/test")
    public void test(){
        eventCenter.publishEventA();
    }

}
